package com.spider.spiderflowable.business.entity.param;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2025/4/20 3:36 下午
 */

@Data
public class ApprovalRequestSubmitParam {

  @NotNull(message = "tenantId不能为空")
  @Schema(description = "租户ID")
  private Long tenantId;

  @NotBlank(message = "businessId不能为空")
  @Schema(description = "业务ID")
  private String businessId;

  @NotBlank(message = "applicationReason不能为空")
  @Schema(description = "申请原因")
  private String applicationReason;

  @NotNull(message = "applicationId不能为空")
  @Schema(description = "申请人Id")
  private Long applicationId;

  @NotNull(message = "applicationName不能为空")
  @Schema(description = "申请人名称")
  private String applicationName;

  @NotBlank(message = "businessSource不能为空")
  @Schema(description = "调用方来源")
  private String businessSource;

  @Schema(description = "调用方回调接口地址")
  private String businessCallbackUrl;

  @Schema(description = "业务信息")
  private String businessInfo;

  @Schema(description = "指定审批人Id)")
  private Long assigneeApprover;

  @Schema(description = "指定审批人姓名)")
  private String assigneeApproverName;


  @Schema(description = "角色编码")
  private String roleCode;

  // 请求类型,内部赋值
  private String requestType;
  private String requestTypeName;


}
